import request from '@/utils/request'

// 列表
export function getGroupList(query) {
	return request({
		url: '/bot/group/list',
		method: 'get',
		params: query
	})
}

// 列表
export function getGroupListOfSearch(query) {
	return request({
		url: '/bot/group/searchOfList',
		method: 'get',
		params: query
	})
}

// 新增
export function addGroup(data) {
	return request({
		url: '/bot/group/add',
		method: 'post',
		data: data
	})
}

// 更新
export function updateGroup(data) {
	return request({
		url: '/bot/group/update',
		method: 'post',
		data: data
	})
}

// 删除
export function removeGroup(data) {
	return request({
		url: '/bot/group/remove',
		method: 'post',
		data: data
	})
}